package com.sale.goods.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.goods.domain.GoodsMaterial;
import com.sale.goods.domain.GoodsTurn;
import com.sale.goods.domain.dto.GoodsCollectionDto;
import com.sale.goods.domain.dto.GoodsTurnDto;
import com.sale.goods.domain.vo.GoodsTurnVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 转账单
 * @Date 23-07-28
 * @Author hl
 **/
public interface GoodsTurnMapper extends BaseMapperPlus<GoodsTurnMapper, GoodsTurn, GoodsTurn> {

    /**
     * 转账单分页信息查询
     * @param build,buildQueryWrapper
     * @return   List<GoodsTurnDto>
     */
    Page<GoodsTurnDto> selectTurnList(@Param("page") Page<GoodsTurnVo> build,  @Param(Constants.WRAPPER) Wrapper<GoodsTurnVo> buildQueryWrapper);

    /**
     * 结账反结账（财务模块单据查询）
     */
    List<GoodsTurnDto> getQClosingDocument(String time);

    /**
     * 结账反结账（财务模块单据查询）
     */
    List<GoodsTurnDto> getRClosingDocument(String time);
}
